package com.qf.entitys;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class Order {
    private String outTradeNo;

    private Integer addId;

    private BigDecimal totalAmount;

    private String subject;

    private Date placeOrderTime;

    private Date deliveryTime;

    private String useCoupon;

    private Integer orderType;

    private BigDecimal payPrice;

    private BigDecimal couponPrice;

    private Integer userid;

    private Integer bid;

    private ShipAddress ship;

    private List<Comorder> clist;

    public ShipAddress getShip() {
        return ship;
    }

    public void setShip(ShipAddress ship) {
        this.ship = ship;
    }

    public List<Comorder> getClist() {
        return clist;
    }

    public void setClist(List<Comorder> clist) {
        this.clist = clist;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
    }

    public Integer getAddId() {
        return addId;
    }

    public void setAddId(Integer addId) {
        this.addId = addId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject == null ? null : subject.trim();
    }

    public Date getPlaceOrderTime() {
        return placeOrderTime;
    }

    public void setPlaceOrderTime(Date placeOrderTime) {
        this.placeOrderTime = placeOrderTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getUseCoupon() {
        return useCoupon;
    }

    public void setUseCoupon(String useCoupon) {
        this.useCoupon = useCoupon == null ? null : useCoupon.trim();
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public BigDecimal getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(BigDecimal payPrice) {
        this.payPrice = payPrice;
    }

    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    @Override
    public String toString() {
        return "Order{" +
                "outTradeNo='" + outTradeNo + '\'' +
                ", addId=" + addId +
                ", totalAmount=" + totalAmount +
                ", subject='" + subject + '\'' +
                ", placeOrderTime=" + placeOrderTime +
                ", deliveryTime=" + deliveryTime +
                ", useCoupon='" + useCoupon + '\'' +
                ", orderType=" + orderType +
                ", payPrice=" + payPrice +
                ", couponPrice=" + couponPrice +
                ", userid=" + userid +
                ", bid=" + bid +
                ", ship=" + ship +
                '}';
    }
}